package com.chinafree.business.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chinafree.business.model.queryCondition.UserQueryCondition;
import com.chinafree.model.po.*;

import java.util.List;
import java.util.Optional;

public interface UserService {



    Optional<MaUser> getMaUserByUserId(Long userId);

    Optional<List<MaUserWork>>  getMaUserWorksByUserId(Long userId);

    Optional<List<MaUserEducation>> getMaUserEducationsByUserId(Long userId);

    Optional<List<MaUserSkill>> getMaUserSkillsByUserId(Long userId);

    Optional<List<MaUserFile>> getMaUserFileByUserId(Long userId);

    void update(MaUser maUser);

    void insert(MaUser maUser);

    void updateMaUserEducation(List<MaUserEducation> maUserEducations, Long id);

    void updateMaUserWork(List<MaUserWork> maUserWorks, Long id);

    void updateMaUserSkill(List<MaUserSkill> maUserSkills,Long id);

    void updateMaUserFile(List<MaUserFile> maUserFile);

    String getCityNameById(Integer liveCity);

    FndPosition getJobTypeById(Integer jobType);

    List<FndProvCityArea> getCityAll();

    List<FndPosition> getJobTypeAll();

    Page<MaUser> selectUserListPage(UserQueryCondition condtion);

    Optional<List<MaUser>> selectByUser(MaUser condtion);

    void updateUserDelivery(Long userId , Long company,  MaUserDelivery ma) ;
}


